public class TestMyArrayList {
    public static void main(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(15);
        myArrayList.add(25);
        myArrayList.add(35);
        myArrayList.add(45);
        myArrayList.add(55);
        myArrayList.add(0,65);
        myArrayList.set(1,105);
        myArrayList.remove(45);
        myArrayList.display();
       //myArrayList.clear();
        int s=myArrayList.size();
        System.out.println(s);
        boolean c=myArrayList.contains(25);
        System.out.println(c);
        int indexOf=myArrayList.indexOf(35);
        System.out.println(indexOf);

        try {
            int data=myArrayList.get(2);
            System.out.println(data);
        }
        catch (EmptyException e){
            e.printStackTrace();
        }
      catch (PosIllegalityException e){
            e.printStackTrace();
      }
    }

}
